﻿using DongFangGuoKai.WMSPlatform.Domain.Enums;
using System;
using System.Collections.Generic;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    /// <summary>
    /// 仓位
    /// </summary>
    public partial class TCell
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 仓位编码
        /// </summary>
        public string Code { get; set; } = null!;
        /// <summary>
        /// 仓位名称
        /// </summary>
        public string Name { get; set; } = null!;
        public EmCellType CellType { get; set; }
        /// <summary>
        /// 库房Id
        /// </summary>
        public int WhId { get; set; }
        public string? WhCode { get; set; }
        public string? WhName { get; set; }
        /// <summary>
        /// 库区Id
        /// </summary>
        public int AreaId { get; set; }
        public string? AreaCode { get; set; }
        public string? AreaName { get; set; }
        /// <summary>
        /// 巷道Id
        /// </summary>
        public int RoutewayId { get; set; }
        /// <summary>
        /// 货架Id
        /// </summary>
        public int ShelfId { get; set; }
        /// <summary>
        /// 货架编码
        /// </summary>
        public string? ShelfCode { get; set; }
        /// <summary>
        /// 货架名称
        /// </summary>
        public string? ShelfName { get; set; }
        /// <summary>
        /// 状态：0-故障；1-正常;2-锁定;3-上架禁用；4-下架禁用；5-上下架禁用；6-取空异常；7-占位异常 8-空箱
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 排号
        /// </summary>
        public int LineNo { get; set; }
        /// <summary>
        /// 层号
        /// </summary>
        public int LayerNo { get; set; }
        /// <summary>
        /// 列号
        /// </summary>
        public int ColumnNo { get; set; }
        /// <summary>
        /// 深度：0:代表一深位、1:代表二深位、2:代表三深位、3:代表四深位；当项目用不上深度时，该值赋值0
        /// </summary>
        public int DepthIndex { get; set; }
        /// <summary>
        /// 是否为最深度的仓位
        /// </summary>
        public bool? IsMaxDepth { get; set; }
        /// <summary>
        /// ERP仓位编码
        /// </summary>
        public string? Erpcode { get; set; }
        /// <summary>
        /// 当前业务类型：0-无；1-入库；2-出库；3-盘点；
        /// </summary>
        public EmBusinessType BusinessType { get; set; }
        /// <summary>
        /// 是否锁定
        /// </summary>
        public bool IsLock { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public int? CreateUserId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateUserName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate { get; set; }
        /// <summary>
        /// 修改用户Id
        /// </summary>
        public int? ModifyUserId { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? ModifyUserName { get; set; }
        /// <summary>
        /// 满仓状态：0-空仓；1-满仓；2-不满仓
        /// </summary>
        public int FullStatus { get; set; }
        public decimal DistanceValue { get; set; }

        /// <summary>
        /// 仓位所在的区
        /// </summary>
        public string? LogicalPartCode { get; set; }
        public string? LogicalPartName { get; set; }
        public int HeightType { get; set; }
    }
}
